Page({
  data: {
    house: [],
  },
  async onLoad({ id }) {
    const res = await wx.http.get(`/room/${id}`)
    console.log(res)
    this.setData({
      house: res.data,
    })
  },
  editHouse(e) {
    console.log(e)
    wx.navigateTo({
      url: `/house_pkg/pages/form/index?id=${e.mark.id}`,
    })
  },
})
